package com.arvato.wxwork.controller.front;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.arvato.common.CSVUtils;
import com.arvato.common.task.WxWorkImportTask;
import com.arvato.wxwork.bean.bean_do.staff.WxworkSysBaDo;
import com.arvato.wxwork.service.member.WxworkSySBaService;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author yux123
 * @since 2019-01-15
 */
@RestController
@RequestMapping("/wxworkSysBa")
public class WxWorkSysBaController {

	@Autowired
	private WxWorkImportTask wxWorkImport;

	@RequestMapping("/test")
	public void test() {
		long start=System.currentTimeMillis(); 
		wxWorkImport.importBa();
		wxWorkImport.importCounter();
		wxWorkImport.importRedempResultItem();
		wxWorkImport.importRedempResultHeader();
		wxWorkImport.importCustBasic();
		wxWorkImport.importLoyalty();
		wxWorkImport.importOrder();
		wxWorkImport.importOrderItem();
		wxWorkImport.importCCPoint();
		long end=System.currentTimeMillis(); //
		System.out.println("程序运行时间： "+(end-start)+"ms");
	}
}
